package com.woniuxy.repay.service;

import com.woniuxy.entity.RepaymentOverdue;
import com.woniuxy.repay.entity.PageBean;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;

/**
 * @author shichen
 * @create 2021-11-21-20:37
 * @description
 */
@CacheConfig(cacheNames = "repaymentOverdue")
public interface RepaymentOverdueService {


    /**
     * 根据条件查询
     * @param repaymentOverdue
     * @return
     */
    @Cacheable(key = "'selectByCondition'+ #repaymentOverdue")
    public PageBean selectByCondition(RepaymentOverdue repaymentOverdue,Integer pageIndex);

    /**
     * 更新表
     * @param repaymentOverdue
     */
    @CacheEvict(allEntries = true)
    public void updateByCondition(RepaymentOverdue repaymentOverdue);

    /**
     * 新增
     * @param repaymentOverdue
     */
    @CacheEvict(allEntries = true)
    public void insert(RepaymentOverdue repaymentOverdue);

}
